﻿
<%@ Page Language="C#" Theme="Default" MasterPageFile="~/MasterPages/admin.master" AutoEventWireup="true"  CodeFile="SshUtenzeGasStorico.aspx.cs" Inherits="SshUtenzeGasStorico" Title="SshUtenzeGasStorico List" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">Ssh Utenze Gas Storico List</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
		<data:GridViewSearchPanel ID="GridViewSearchPanel1" runat="server" GridViewControlID="GridView1" PersistenceMethod="Session" />
		<br />
		<data:EntityGridView ID="GridView1" runat="server"			
				AutoGenerateColumns="False"					
				OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
				DataSourceID="SshUtenzeGasStoricoDataSource"
				DataKeyNames="IdUtenzeGasStorico"
				AllowMultiColumnSorting="false"
				DefaultSortColumnName="" 
				DefaultSortDirection="Ascending"	
				ExcelExportFileName="Export_SshUtenzeGasStorico.xls"  		
			>
			<Columns>
				<asp:CommandField ShowSelectButton="True" ShowEditButton="True" />				
				<data:HyperLinkField HeaderText="Id Stato" DataNavigateUrlFormatString="SshStatoRelazioniEdit.aspx?IdStato={0}" DataNavigateUrlFields="IdStato" DataContainer="IdStatoSource" DataTextField="DscStato" />
				<asp:BoundField DataField="Note" HeaderText="Note" SortExpression="[Note]"  />
				<asp:BoundField DataField="SAreaUscita" HeaderText="S Area Uscita" SortExpression="[s_area_uscita]"  />
				<data:HyperLinkField HeaderText="Id Trader Prec Storico" DataNavigateUrlFormatString="SshTraderPrecStoricoEdit.aspx?IdTraderPrecStorico={0}" DataNavigateUrlFields="IdTraderPrecStorico" DataContainer="IdTraderPrecStoricoSource" DataTextField="MeseInizioFornitura" />
				<asp:BoundField DataField="CdCliente" HeaderText="Cd Cliente" SortExpression="[CD_CLIENTE]"  />
				<asp:BoundField DataField="DsCliente" HeaderText="Ds Cliente" SortExpression="[DS_CLIENTE]"  />
				<asp:BoundField DataField="CdAteco" HeaderText="Cd Ateco" SortExpression="[CD_ATECO]"  />
				<asp:BoundField DataField="CdPuntoFornitura" HeaderText="Cd Punto Fornitura" SortExpression="[CD_PUNTO_FORNITURA]"  />
				<asp:BoundField DataField="CdComune" HeaderText="Cd Comune" SortExpression="[CD_COMUNE]"  />
				<asp:BoundField DataField="ConsumoAnnuoStimato" HeaderText="Consumo Annuo Stimato" SortExpression="[CONSUMO_ANNUO_STIMATO]"  />
				<asp:BoundField DataField="CdPrelievoAeeg" HeaderText="Cd Prelievo Aeeg" SortExpression="[CD_PRELIEVO_AEEG]"  />
			</Columns>
			<EmptyDataTemplate>
				<b>No SshUtenzeGasStorico Found!</b>
			</EmptyDataTemplate>
		</data:EntityGridView>
		<br />
		<asp:Button runat="server" ID="btnSshUtenzeGasStorico" OnClientClick="javascript:location.href='SshUtenzeGasStoricoEdit.aspx'; return false;" Text="Add New"></asp:Button>
		<data:SshUtenzeGasStoricoDataSource ID="SshUtenzeGasStoricoDataSource" runat="server"
			SelectMethod="GetPaged"
			EnablePaging="True"
			EnableSorting="True"
			EnableDeepLoad="True"
			>
			<DeepLoadProperties Method="IncludeChildren" Recursive="False">
	            <Types>
					<data:SshUtenzeGasStoricoProperty Name="SshStatoRelazioni"/> 
					<data:SshUtenzeGasStoricoProperty Name="SshTraderPrecStorico"/> 
				</Types>
			</DeepLoadProperties>
			<Parameters>
				<data:CustomParameter Name="WhereClause" Value="" ConvertEmptyStringToNull="false" />
				<data:CustomParameter Name="OrderByClause" Value="" ConvertEmptyStringToNull="false" />
				<asp:ControlParameter Name="PageIndex" ControlID="GridView1" PropertyName="PageIndex" Type="Int32" />
				<asp:ControlParameter Name="PageSize" ControlID="GridView1" PropertyName="PageSize" Type="Int32" />
				<data:CustomParameter Name="RecordCount" Value="0" Type="Int32" />
			</Parameters>
		</data:SshUtenzeGasStoricoDataSource>
	    		
</asp:Content>



